import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:part_time_job_pro/common/langs/local.dart';
import 'package:part_time_job_pro/common/values/images.dart';
import 'package:part_time_job_pro/pages/find/view.dart';
import 'package:part_time_job_pro/pages/message/view.dart';
import 'package:part_time_job_pro/pages/offer/view.dart';
import 'package:part_time_job_pro/pages/service/view.dart';

class HomeState {
  //当前下标
  late int currentIndex;

  //主页界面子页面
  late List<Widget> mainIndexStackPages;

  //底部图标
  final iconList = ["offer", "find", "chat", "service"];

  //标题
  List<String> labelList = [Local.offer.tr, Local.find.tr, Local.message.tr, Local.mine.tr].obs;

  late bool ishowModal = false;

  //滚动条透明度 默认不显示
  double scrollBarThickness = 0;

  //发布图标
  late List<Map<String, Object>> publicTypeList = [
    {"id": 0, "icon": AssetsImages.jzIcon, "name": "发布兼职", "count": 0},
    {"id": 1, "icon": AssetsImages.qzIcon, "name": "发布全职", "count": 2},
    {"id": 2, "icon": AssetsImages.xzIcon, "name": "发布校招", "count": 8},
  ];

  HomeState() {
    currentIndex = 0;
    mainIndexStackPages = [OfferPage(), FindPage(), MessagePage(), ServicePage()];
  }
}
